package com.iraeta.dao.iraorder;

import com.iraeta.entity.Iraorderwuliuproduct;
import com.iraeta.entity.vo.IraOrderWuLiuProductVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IraorderwuliuproductDao {
    int insert(Iraorderwuliuproduct record);
    int updateByPrimaryKey(Iraorderwuliuproduct record);
    int deleteByPrimaryKey(Integer id);

    Iraorderwuliuproduct selectByPrimaryKey(Integer id);
    Iraorderwuliuproduct selectByCondition(@Param("orderWuLiuId") Integer orderWuLiuId, @Param("productId") Integer productId);
    List<IraOrderWuLiuProductVo> selectByWuliuId(@Param("orderId") Integer orderId, @Param("orderWuLiuId") Integer orderWuLiuId);
}